package com.fs.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fs.pojo.Inventory;
import com.fs.pojo.Sto;
import com.fs.pojo.StoTo;
import com.fs.pojo.WhOutbound;
import com.fs.service.StoService;
import com.fs.vo.Condition;
import com.fs.vo.ResponseData;
import com.fs.vo.ResultEnums;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author python_boy
 * @fileName StoController
 * @date 2024/10/22 16:42
 * @description
 **/
@RestController
@RequestMapping("/finance/salesorder")
public class StoController {
    @Autowired
    private StoService stoService;


    /**
     * 分页查询
     * @param condition 分页条件
     * @return 分页数据
     */
    @PostMapping("/list")
    public ResponseData<PageInfo> selectPage(@RequestBody Condition<StoTo> condition){
        return new ResponseData<PageInfo>(ResultEnums.OK,stoService.selectAll(condition));
    }
}
